package com._21cn.cms.resource.web.validator;

import com._21cn.cms.resource.entity.Picture;
import org.springframework.stereotype.Component;
import org.springframework.validation.Errors;
import org.springframework.validation.Validator;

@Component("pictureValidator")
public class PictureValidator implements Validator {

    public boolean supports(Class<?> clazz) {
        return Picture.class.equals( clazz );
    }

    public void validate(Object target, Errors errors) {
        Picture obj = (Picture)target;
        //TODO
    }
}